package com.mihuxiaobaigao.ai.Service;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.mihuxiaobaigao.ai.pojo.Page;
import com.mihuxiaobaigao.ai.pojo.ProductDTO;
import com.mihuxiaobaigao.ai.pojo.Response.AiResponse;
import com.mihuxiaobaigao.ai.pojo.Tags;
import java.io.IOException;
import java.util.List;
import java.util.Map;


public interface productService {
     String insert(ProductDTO productDTO);
     void add(String name,Integer count) throws Throwable;
     Page show(Integer pageNum, Integer pageSize) throws IOException;
     String take(String name,Integer count) throws Throwable;
     Tags getTags(String name);
     Integer getCount();
     Integer getRating();
     Integer getAllCount();
     List<Map<String, Integer>> getTips();
     Map<String, Integer> getMsgAndCount(String name);
     Page normalRecommand(Integer count) throws IOException;
     List<String> normalRecommandExpand(Integer count) throws IOException;
     Page recommandByTags(String name, Integer count) throws IOException;;
     List<String> recommandProduct(String name);
     void setAuthorization(String authorization, String name);
     void setAgent(String appId, String name);
     AiResponse recommandProductAI(String question, String userName) throws Throwable;
     AiResponse test(String matter) throws Throwable;
     void deleteByName(String name) throws Throwable;

     //void recommandBox(String name);
}
